/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sisgeroupas.factory;
//faz as importaçoes de classes necessarias para o funcionamento do programa
/**
 *
 * @author root
 */
import java.sql.Connection; //Classe para tratamento de exceçoes
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionBD
{
    public Connection getConnection()
    {
        try
        {
             return DriverManager.getConnection("jdbc:mysql://localhost/sisge","root","");
        }
        catch(SQLException excecao)
        {        
             throw new RuntimeException(excecao); 
        }
    }
    
    
}






